/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Fabrica;

import Administracion.REI;
import Administracion.admonResidentes;

/**
 *
 * @author Christian
 */
public class FabricaREI {

    public static REI crearObjeto(String operacion) {
        if (operacion.toLowerCase().equals("agregar")) {
            return new admonResidentes();
        } else if (operacion.toLowerCase().equals("actualizar")) {
            return new admonResidentes();
        } else if (operacion.toLowerCase().equals("eliminar")) {
            return new admonResidentes();
        } else if (operacion.toLowerCase().equals("lista")) {
            return new admonResidentes();
        } else if (operacion.toLowerCase().equals("horario")) {
            return new admonResidentes();
        } else if (operacion.toLowerCase().equals("perfil")) {
            return new admonResidentes();
        } else if (operacion.toLowerCase().equals("obtenerhorario")) {
            return new admonResidentes();
        } else if (operacion.toLowerCase().equals("obtenerperfil")) {
            return new admonResidentes();
        }
        return null;
    }
}
